package iit.projects.etaxi.util;

import ca.odell.glazedlists.matchers.TextMatcherEditor;

public interface Constants {
	
	public interface BundleNames{
		//Bundle Names
		public static final String RESOURCES = "iit.projects.etaxi.view.resources.resources";
		public static final String MESSAGES = "iit.projects.etaxi.view.resources.messages";
	}
	
	public interface FacesMessage {
		public static final String MESSAGE_POPUP_TITLE_SINGLE = JSFUtils.getStringFromBundle(BundleNames.RESOURCES,"message.single.title");
		public static final String MESSAGE_POPUP_TITLE_MULTIPLE = JSFUtils.getStringFromBundle(BundleNames.RESOURCES,"message.multiple.title");
		public static final String MESSAGE_POPUP_TITLE_INFO = JSFUtils.getStringFromBundle(BundleNames.RESOURCES,"message.info.title");
		public static final String MESSAGE_POPUP_TITLE_WARN = JSFUtils.getStringFromBundle(BundleNames.RESOURCES,"message.warn.title");
		public static final String MESSAGE_POPUP_TITLE_ERROR = JSFUtils.getStringFromBundle(BundleNames.RESOURCES,"message.error.title");
		public static final String MESSAGE_POPUP_TITLE_FATAL = JSFUtils.getStringFromBundle(BundleNames.RESOURCES,"message.fatal.title");
		

		public static final String MESSAGE_STYLE_CLASS_INFO = "infoMessage";
		public static final String MESSAGE_STYLE_CLASS_WARN = "warnMessage";
		public static final String MESSAGE_STYLE_CLASS_ERROR = "errorMessage";
		public static final String MESSAGE_STYLE_CLASS_FATAL = "fatalMessage";
	}
	
	public interface ReservationStatus{
		public static final String NEW = "NEW";
		public static final String PROCESSED = "PROCESSED";
		public static final String ASSIGNED = "ASSIGNED";
		public static final String UNASSIGNED = "UNASSIGNED";
		public static final String COMPLETED = "COMPLETED";
		public static final String CANCELED = "CANCELED";
	}
	
	public interface VehicleLocationStatus{
		public static final String LAST_ASSIGNED = "LAST_ASSIGNED";
		public static final String ASSIGNED_NEW = "ASSIGNED_NEW";
	}
	
	public interface SmsTypes{
		public static final String REQUEST = "REQUEST";
		public static final String CONFIRMATION = "CONFIRMATION";
	}
	
	public interface SmsStatus{
		public static final String NEW = "NEW";
		public static final String PROCESSED = "PROCESSED";
	}
	
	public interface SequenceNames{
		public static final String RESERVATION = "RESERVATION";
		public static final String CUSTOMER = "CUSTOMER";
	}
	
	public static final int TEXT_MATCHER_EDITOR_MODE = TextMatcherEditor.STARTS_WITH;
	
	public static final String SELECT_VALUE = null;
	public static final String SELECT_LABEL = "- select -";
	
	public static final String SELECTED_SUBCITY = "SELECTED_SUBCITY";
	public static final String REMOVED_SUBCITY = "REMOVED_SUBCITY";
	public static final String CLOSE_BY_SUBCITY = "CLOSE_BY_SUBCITY";
	public static final String CLOSE_BY_SUBCITIES = "CLOSE_BY_SUBCITIES";
	
	public static final String LOGGED_IN = "loggedIn";
	public static final String LOGGED_IN_AS_OPERATOR = "loggedAsOperator";
	public static final String LOGGED_IN_AS_CUSTOMER = "loggedAsCustomer";
	public static final String CUSTOMER = "customer";
	public static final String OPERATOR = "operator";
	public static final String USERNAME = "username";
	
	
	public static final String COMMON_DATE_FORMAT = JSFUtils.getStringFromBundle(BundleNames.RESOURCES,"common.date.pattern");
	
	public static final String DEFAULT_GENDER = JSFUtils.getResourcesProperty("gender.values.1.value");
	public static final String DEFAULT_CREDIT_CARD = JSFUtils.getResourcesProperty("creditcards.values.1.value");
}
